Skip to content

Adopt NSE 2.9.0; the VM observers use NSE's observer API - #210

Merged
onyks-os merged 1 commit into
mainfrom
test/nse-2.9.0
Dec 3, 2026
Merged

onyks-os merged 1 commit into
mainfrom
test/nse-2.9.0

Conversation

@onyks-os

@onyks-os onyks-os commented Dec 3, 2026

Copy link
Copy Markdown
Owner

NSE 2.9.0 is out. This raises the nse extra's floor to it and does the simplification planned with NSE 2.8.0 (.internal/nse-2.8.0-proposte.md, A + B + C).

Floor. network-sandbox-engine>=2.9.0 (pyproject, MIN_NSE_VERSION, requirements/ci.txt with only NSE upgraded, docs). 2.9.0 no longer reads another packet's verdict as a stimulus's when the kernel reuses a trace id, which the zero-leak suite relies on.

VM observers (scripts/vm/lifecycle/observer.py, chaos_observer.py, tests/chaos_observation.py):

  • agents come from nse.agents.write_agents (stimulus-agent.py, beacon-agent.py; run.sh and chaos.sh follow the rename), plans from agent_plan(): no more argv[4] / argv[5];
  • CaptureReport.between places packets between two beacons by frame, not by timestamp. It replaces observer._from_opening and the chaos sweep's escaped() comparison;
  • the chaos sweep reads the guest's MAC from the beacon report. The guest no longer writes its own beacon token, nor a MAC into capture-open (it still reads its MAC for the router solicitation).

Tests: the observer tests run the real NSE agents, so they now run 2.9.0's; 39/39 locally. test_the_guest_writes_the_beacon_agents_plan is removed because NSE owns that contract now. The VM jobs are what really exercise this.

🤖 Generated with Claude Code

The nse extra requires network-sandbox-engine>=2.9.0, where a stimulus's
verdict can no longer be taken from another packet that reused its
kernel trace id. The VM observers drop their own copies of what NSE 2.8.0
added for observers outside the sandbox:

- agents written by nse.agents.write_agents, plans from agent_plan(),
  no more argv[4]/argv[5];
- packets between two beacons by frame (CaptureReport.between), replacing
  observer._from_opening and the chaos sweep's timestamp comparison;
- the guest's MAC from the beacon report; the guest no longer writes a
  beacon token or a MAC into capture-open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
@onyks-os
onyks-os merged commit 20c1f84 into main Dec 3, 2026
37 of 38 checks passed
@onyks-os
onyks-os deleted the test/nse-2.9.0 branch December 3, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant